﻿// <copyright file="ForexSite.cs" company="Golizza.net">Copyright (c) 2012 All Right Reserved</copyright>

namespace ClientApp.Model
{
    using Common;

    /// <summary>
    /// The model class for Forex Site.
    /// </summary>
    public class ForexSite : NotifyPropertyChangedBase
    {
        #region [ Private Fields ]

        /// <summary>
        /// The back up value for <see cref="Link"/> property.
        /// </summary>
        private string link;

        /// <summary>
        /// The back up value for <see cref="Name"/> property.
        /// </summary>
        private string name;

        #endregion

        #region [ Constructors ]

        /// <summary>
        /// Initializes a new instance of the <see cref="ForexSite" /> class.
        /// </summary>
        /// <param name="name">The name.</param>
        /// <param name="link">The link.</param>
        public ForexSite(string name, string link)
        {
            this.name = name;
            this.link = link;
        }

        #endregion

        #region [ Properties ]

        /// <summary>
        /// Gets or sets the Link.
        /// </summary>
        public string Link
        {
            get
            {
                return this.link;
            }

            set
            {
                if (this.link != value)
                {
                    this.link = value;
                    this.OnPropertyChanged("Link");
                }
            }
        }

        /// <summary>
        /// Gets or sets the Name.
        /// </summary>
        public string Name
        {
            get
            {
                return this.name;
            }

            set
            {
                if (this.name != value)
                {
                    this.name = value;
                    this.OnPropertyChanged("Name");
                }
            }
        }

        #endregion
    }
}
